package com.magold.game.level;

import java.util.Map;

import org.andengine.entity.IEntity;

import com.magold.sprite.EntityFilter;

public class EntityProxy<K> extends EntityFilter {
	private K mID;
	private Map<K, ?> mMapping;
	
	public EntityProxy(K pID, Map<K, ?> pMapping) {
		mID = pID;
		mMapping = pMapping;
	}

	@Override
	protected IEntity getWrappedEntity() {
		return (IEntity) mMapping.get(mID);
	}

}
